WooCommerce\Square\Settings D

Total Complexity 138
Dependencies 9
Dependents 3
Total lines 1,047
Lines of code 420
Logical lines of code 232
Comment lines 413
Methods 46
Properties 4

Methods 46

Method Rating Maintainability Complexity Lines of code
get_locations()
A
46 15 34
get_form_fields()
A
48 14 30
get_access_token()
S
55 7 19
show_auth_keys_changed_notice()
S
56 7 19
render_payments_settings_container()
S
59 7 13
get_refresh_token()
S
55 6 19
update_access_token()
S
55 5 19
maybe_change_sync_interval()
S
61 5 12
generate_import_products_html()
S
55 4 20
update_refresh_token()
S
57 4 17
register_pages()
S
63 5 9
show_visit_wizard_notice()
S
54 3 23
__construct()
S
49 2 31
get_location_id()
S
63 4 10
get_environment()
S
73 4 4
get_system_of_record_name()
S
60 3 14
generate_connect_html()
S
57 2 20
square_onboarding_redirect()
S
64 3 10
render_square_settings_container()
S
68 3 6
is_admin_settings_screen()
S
76 3 3
is_inventory_sync_enabled()
S
76 3 3
is_system_of_record_disabled()
S
75 2 4
is_custom_square_auth_keys_set()
S
79 2 3
get_sync_interval()
S
70 2 5
is_configured()
S
79 2 3
get_plugin()
S
82 1 3
is_sandbox_setting_enabled()
S
80 1 3
get_enable_sandbox()
S
80 1 3
get_refresh_tokens()
S
79 1 3
get_access_tokens()
S
79 1 3
render_onboarding_page()
S
76 1 5
get_system_of_record()
S
80 1 3
is_sandbox()
S
80 1 3
get_locations_ajax_callback()
S
72 1 5
is_debug_enabled()
S
79 1 3
init_form_fields()
S
81 1 3
is_connected()
S
80 1 3
hide_missing_square_products()
S
79 1 3
is_product_sync_enabled()
S
80 1 3
is_system_of_record_square()
S
79 1 3
is_system_of_record_woocommerce()
S
79 1 3
clear_location_id()
S
72 1 5
clear_access_tokens()
S
81 1 3
clear_refresh_tokens()
S
81 1 3
init()
S
78 1 4
is_override_product_images_enabled()
S
78 1 3